package com.songlanyun.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.enums.MemberConstant;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 服务订单联系人
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2021-03-02 16:01:17
 */
@Data
@TableName("yxt_sale_service_order_contacts")
public class SaleServiceOrderContacts extends RootEntity<Long,SaleServiceOrderContacts>  implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 联系人
	 */
	@NotBlank(message = "联系人不能为空")
	private String contacts;
	/**
	 * 联系人电话
	 */
	@NotBlank(message = "联系人电话不能为空")
	private String mobile;

	/**
	 * 性别（0保密，1男，2女）
	 */
	private MemberConstant.GenderType gender;
	/**
	 * 订单id
	 */
	private Long orderId;

	@Override
	public Long getIdentity() {
		return getId();
	}
}
